package cn.dhnep.demo.util;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

@Data
public class Page implements Serializable {
	 //当前页
    private Integer page=1;
    //页大小
    private Integer rows=5;
    // 总记录 数
    private Integer totalRecord;
    //总页数
    private Integer totalPage;
    //关键字类型
    private String keyType;
    //查询关键字
    private String keyWord;
    //开始记录位置
    @Getter(AccessLevel.NONE)
    private Integer start;

    //标题
    private String title;

    //订单号
    private String orderNumber;
    private String userName;
    private String horsemanName;
    private String orderState;

    //提现
    private String phone;
    private String userType;

    //骑手
    private String horsemanPhone;
    private String horsemanArea;

    //意见反馈
    private String openid;
    private String username;
    private Integer response;
    private String source;

    //帮助中心
    private String question;

    //登录记录
    private String loginname;

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    public Integer getResponse() {
        return response;
    }

    public String getOpenid() {
        return openid;
    }

    public String getUsername() {
        return username;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public void setResponse(Integer response) {
        this.response = response;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getHorsemanPhone() {
        return horsemanPhone;
    }

    public String getHorsemanArea() {
        return horsemanArea;
    }

    public void setHorsemanArea(String horsemanArea) {
        this.horsemanArea = horsemanArea;
    }

    public void setHorsemanPhone(String horsemanPhone) {
        this.horsemanPhone = horsemanPhone;
    }

    public String getPhone() {
        return phone;
    }

    public String getUserType() {
        return userType;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public void setHorsemanName(String horsemanName) {
        this.horsemanName = horsemanName;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderState() {
        return orderState;
    }

    public String getUserName() {
        return userName;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public String getHorsemanName() {
        return horsemanName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(Integer totalRecord) {
        this.totalRecord = totalRecord;
    }

    public Integer getTotalPage() {
        totalPage=(totalRecord-1)/rows+1;
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {

        this.totalPage = totalPage;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public Integer getStart() {
        start=(page-1)*rows;
        return start;
    }

    public void setStart(Integer start) {

        this.start = start;
    }

    public Page() {
    }





}
